﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WWX.Model;

namespace WWX.Admin.Web.Models
{
    public class ProductVM
    {
        public string Id { get; set; }

        public string Name { get; set; }

        public string No { get; set; }

        public string Remark { get; set; }

        public int RemainCount { get; set; }

        public decimal Price { get; set; }

        public Product ToProduct()
        {
            return new Product()
            {
                Id = this.Id,
                Name = this.Name,
                No = this.No,
                Remark = this.Remark,
                RemainCount = this.RemainCount,
                Price = this.Price
            };
        }
    }
}